package com.changfeng.service;

import com.changfeng.bean.dto.vo.AddressListVO;
import com.changfeng.bean.dto.vo.AddressSaveVO;

import java.util.List;

public interface AddressService {
    /**
     * 保存地址
     * @param addressSaveVO
     */
    void SaveAddress(AddressSaveVO addressSaveVO);

    /**
     * 根据用户查询地址
     * @param userId
     * @return
     */
    List<AddressListVO> getAddressList(Integer userId);

    /**
     * 根据id查询地址
     * @param addressId
     * @return
     */
    AddressSaveVO getAddress(Integer addressId);

    /**
     * 根据id删除地址
     * @param addressId
     */
    void deleteAddress(Integer addressId);
}
